package com.example.myfoodrecipe.data.remote

import com.example.myfoodrecipe.data.model.FoodRecipe
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query

interface FoodApi {
    //服务器地址api.spoonacular.com/recipes/complexSearch
    @GET("/recipes/complexSearch?addRecipeInformation=true&fillIngredients=true&number=50&apiKey=bfc03d044f1e42f8ab2e4031dfebcdea&number=1")
    suspend fun fetchFoodRecipe(@Query("type")type: String): Response<FoodRecipe>

}